home *** CD-ROM | disk | FTP | other *** search
- //////////////////////////////////////////////////////////////////////////////
- //
- // Copyright 1997-99 Pandemic Studios
- //
- // Dark Reign II
- //
-
-
- ///Player kill rioters
- CreateObjectType("objective_kill_mob", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveTag")
- {
- Tag("rioters")
- {
- Operator("<");
- Amount(1);
- }
- Relation("Enemy");
- }
- Action()
- {
- DisplayObjective("Remove", "objective_kill_mob");
- NewObjective("cineractive_mob");
- NewObjective("objective_stand");
- NewObjective("objective_2towers");
- }
- }
- }
-
-
- CreateObjectType("objective_msg_base_loc", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(5);
- }
- Action()
- {
- RegionMessage()
- {
- Region("jda_base");
- Message("msg_base_loc");
- }
- NewObjective("objective_msg_base_loc");
- }
- }
- }
-
-
- ///player reaches base
- CreateObjectType("objective_stand", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("InRegion")
- {
- Region("complex");
- Type("*")
- {
- Amount(0);
- Operator(">");
- }
- Team("jda");
- }
- Action()
- {
- ObjectiveAbandoned("objective_msg_base_loc");
- GameMessage()
- {
- Message("j01_cig_obj-2");
- }
- DisplayObjective("Remove", "objective_stand");
- DisplayObjective("Add", "cineractive_quake")
- {
- Text("#missions.jda.j01.obj_stand");
- }
- ExecuteScript("attackers_2", "squad.move.tagtoregion")
- {
- Op("%.tag", "=", "attackers_2");
- Op("%.region", "=", "complex");
- }
- Cmd("team.setrelation jda_ally jda ally");
- Cmd("team.setrelation jda jda_ally ally");
- NewObjective("objective_earthquake");
- }
- }
- }
-
-
- ///quake
- CreateObjectType("objective_earthquake", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(20, 25);
- }
- Action()
- {
- NewObjective("cineractive_quake");
- NewObjective("objective_orders");
- }
- }
- }
-
- ///ordered to rebuild base
- CreateObjectType("objective_orders", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(24);
- }
- Action()
- {
- HighlightConstruction("jda.building.hq1");
- DisplayObjective("Add", "objective_rebuild_hq")
- {
- Text("#missions.jda.j01.obj_orders");
- }
- RegionMessage()
- {
- Region("jda_base");
- Message("j01_comb_obj-3");
- }
- NewObjective("objective_rebuild_hq");
- NewObjective("objective_hq_building");
- NewObjective("objective_rig_lost");
- }
- }
- }
-
- //begins building hq1
- CreateObjectType("objective_hq_building", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("ConstructingType")
- {
- Type("jda.building.hq1");
- }
- Action()
- {
- UnHighlightConstruction();
- ObjectiveAbandoned("objective_patrol_killed");
- ObjectiveAbandoned("objective_rig_lost");
- HighlightConstruction("jda.building.solarpower");
- GameMessage()
- {
- Message("j01_sid_hlp-2");
- }
- DisplayObjective("Add", "objective_build_power")
- {
- Text("#missions.jda.j01.obj_hq_building");
- }
- NewObjective("objective_build_power");
- }
- }
- }
-
-
- CreateObjectType("objective_build_power", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Type("jda.building.solarpower")
- {
- Operator(">");
- Amount(0);
- }
- }
- Action()
- {
- UnHighlightConstruction();
- HighlightConstruction("jda.building.precinct1");
- DisplayObjective("Remove", "objective_build_power");
- GameMessage()
- {
- Message("j01_sid_hlp-4");
- }
- NewObjective("objective_build_precinct");
- DisplayObjective("Add", "objective_build_precinct")
- {
- Text("#missions.jda.j01.obj_build_precinct");
- }
- }
- }
- }
-
-
- ///begins building precinct
- CreateObjectType("objective_build_precinct", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("ConstructingType")
- {
- Type("jda.building.precinct1");
- }
- Action()
- {
- UnHighlightConstruction();
- DisplayObjective("Remove", "objective_build_precinct");
- GameMessage()
- {
- Message("j01_sid_hlp-3");
- }
- NewObjective("objective_test_rig");
- HighlightConstruction("jda.unit.rig");
- DisplayObjective("Add", "objective_build_rig")
- {
- Text("#missions.jda.j01.obj_build_rig");
- }
- }
- }
- }
-
-
- CreateObjectType("objective_test_rig", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("HaveType")
- {
- Type("jda.building.precinct1")
- {
- Amount(0);
- Operator(">");
- }
- }
- Condition("HaveType")
- {
- Type("jda.unit.rig")
- {
- Amount(0);
- Operator(">");
- }
- }
- }
- Action()
- {
- UnHighlightConstruction();
- DisplayObjective("Remove", "objective_build_rig");
- GameMessage()
- {
- Message("j01_sid_hlp-5");
- }
- HighlightConstruction("jda.building.motorpool1");
- DisplayObjective("Add", "objective_base")
- {
- Text("#missions.jda.j01.obj_build_motorpool");
- }
- NewObjective("objective_motorpool");
- }
- }
- }
-
-
- CreateObjectType("objective_motorpool", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("ConstructingType")
- {
- Type("jda.building.motorpool1");
- }
- Action()
- {
- UnHighlightConstruction();
- NewObjective("objective_restore_refinery");
- NewObjective("objective_motorpool_complete");
- }
- }
- }
-
-
- CreateObjectType("objective_motorpool_complete", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Type("jda.building.motorpool1")
- {
- Amount(0);
- Operator(">");
- }
- }
- Action()
- {
- DisplayObjective("Remove", "objective_base");
- }
- }
- }
-
-
-
- ///Player constructs HQ
- CreateObjectType("objective_rebuild_hq", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Type("jda.building.hq1")
- {
- Operator("==");
- Amount(1);
- }
- }
- Action()
- {
- DisplayObjective("Remove", "objective_rebuild_hq");
- }
- }
- }
-
-
- CreateObjectType("collector_loc", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(6);
- }
- Action()
- {
- RegionMessage()
- {
- Region("collector_loc");
- Message("msg_collector_loc");
- }
- }
- }
- }
-
- CreateObjectType("objective_restore_refinery", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(4);
- }
- Action()
- {
- NewObjective("cineractive_refinery");
- SetTeam()
- {
- Tag("refinery");
- Team("JDA");
- }
- SetTeam()
- {
- Tag("collector");
- Team("JDA");
- }
- NewObjective("objective_base_built");
- }
- }
- }
-
-
- CreateObjectType("objective_base_built", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("InRegion")
- {
- Region("resource");
- Type("jda.unit.collector")
- {
- Amount(1);
- Operator("==");
- }
- }
- Action()
- {
- GameMessage()
- {
- Message("j01_comb_obj-4");
- }
- DisplayObjective("Remove", "objective_base_built");
- ObjectiveAbandoned("objective_fuckup");
- DisplayObjective("Add", "objective_3towers")
- {
- Text("#missions.jda.j01.obj_3towers");
- }
- NewObjective("tower_locs");
- NewObjective("cineractive_tower");
- NewObjective("objective_defeat");
- }
- }
- }
-
-
- //player loses all
- CreateObjectType("objective_defeat", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveMember")
- {
- Amount(0);
- Operator("==");
- Team("jda");
- }
- Action()
- {
- NewObjective("cineractive_defeat");
- }
- }
- }
-
-
-
- ///Player destroys 1 enemy aa tower
-
- CreateObjectType("objective_2towers", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Relation("Enemy");
- Type("sprawler.building.aatower")
- {
- Operator("==");
- Amount(2);
- }
- }
- Action()
- {
- GameMessage()
- {
- Message("j01_sid_hlp-6");
- }
- NewObjective("objective_1tower");
- }
- }
- }
-
-
- ///Player destroys 2 enemy aa towers
-
- CreateObjectType("objective_1tower", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Relation("Enemy");
- Type("sprawler.building.aatower")
- {
- Operator("==");
- Amount(1);
- }
- }
- Action()
- {
- GameMessage()
- {
- Message("j01_sid_hlp-7");
- }
- NewObjective("objective_0towers");
- }
- }
- }
-
-
- ///Player destroys all enemy aa towers
-
- CreateObjectType("objective_0towers", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveType")
- {
- Relation("Enemy");
- Type("sprawler.building.aatower")
- {
- Operator("<");
- Amount(1);
- }
- }
- Action()
- {
- DisplayObjective("Complete", "objective_3towers");
- NewObjective("cineractive_outro");
- }
- }
- }
-
- ///////tower location messages
-
-
- CreateObjectType("tower_locs", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(5);
- }
- Action()
- {
- ObjectiveAbandoned("tower_loc1");
- ObjectiveAbandoned("tower_loc2");
- ObjectiveAbandoned("tower_loc3");
- NewObjective("tower_locs");
- NewObjective("tower_loc1");
- NewObjective("tower_loc2");
- NewObjective("tower_loc3");
- }
- }
- }
-
-
- CreateObjectType("tower_loc1", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TagCount")
- {
- Tag("tower_1")
- {
- Amount(0);
- Operator(">");
- }
- }
- Action()
- {
- RegionMessage()
- {
- Message("msg_tower_loc");
- Region("tower_1");
- }
- }
- }
- }
-
- CreateObjectType("tower_loc2", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TagCount")
- {
- Tag("tower_2")
- {
- Amount(0);
- Operator(">");
- }
- }
- Action()
- {
- RegionMessage()
- {
- Message("msg_tower_loc");
- Region("tower_2");
- }
- }
- }
- }
-
- CreateObjectType("tower_loc3", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TagCount")
- {
- Tag("tower_3")
- {
- Amount(0);
- Operator(">");
- }
- }
- Action()
- {
- RegionMessage()
- {
- Message("msg_tower_loc");
- Region("tower_3");
- }
- }
- }
- }
-
-
-
- //player loses hq and free rig
- CreateObjectType("objective_rig_lost", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("AND")
- {
- Condition("HaveType")
- {
- Type("jda.unit.rig")
- {
- Amount(0);
- Operator("==");
- }
- }
- Condition("HaveType")
- {
- Type("jda.building.hq1")
- {
- Amount(0);
- Operator("==");
- }
- }
- Condition("Timer")
- {
- Time(300);
- }
- }
- Action()
- {
- Cineractive("cineractive_defeat");
- }
- }
- }
-
- ///player loses all starting units
- CreateObjectType("objective_reinforcements", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("TagCount")
- {
- Tag("jda_patrol")
- {
- Operator("<");
- Amount(1);
- }
- }
- Action()
- {
- RegionMessage()
- {
- Message("msg_reinforcements");
- Region("reinforcements");
- }
- SpawnObjects()
- {
- Formation("Box");
- Direction(0);
- Region("reinforcements");
- Tag("jda_patrol");
- Random(1);
- AddType("jda.unit.guardian", 8);
- }
- NewObjective("objective_reinforcements");
- }
- }
- }
-
-
- ///player loses all units before building base
- CreateObjectType("objective_patrol_killed", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("HaveTag")
- {
- Tag("jda_patrol")
- {
- Operator("<");
- Amount(1);
- }
- }
- Action()
- {
- NewObjective("cineractive_defeat");
- }
- }
- }
-
-
- CreateObjectType("strikes", "Objective")
- {
- GameObj();
- ObjectiveObj()
- {
- Condition("Timer")
- {
- Time(30, 60);
- }
- Action()
- {
- Cmd("rain.strike");
- NewObjective("strikes");
- }
- }
- }
-
-